import request from '@/src/basic/utils/request.js'
import { getUserInfo } from '@/src/basic/utils/user'

export const refreshToken = async () => {
  const info = getUserInfo()
  const { data } = await request.get(`/auth/token/refresh/${info.refreshToken}`)
  return data
}
